﻿/*苏兴迎 E-Mail:284238436@qq.com*/
namespace MVC
{
    public struct CrossOrgin
    {
        public string AllowOrigin { get; set; }
        public string AllowHeaders { get; set; }
        public string AllowMethod { get; set; }
        public bool AllowCredentials { get; set; }
    }
    public class Config
    {
        public static string leftFmt="{#";
        public static string rightFmt = "}";
        public static string template = "";
        public static string template_type = ".html";
        public static string config_file = "Resources/config.json";         // 配置文件地址
        public static string mime_file = "Resources/mime.json";             // mime配置文件地址
        public static bool open_cache = true;
        public static string cache_max_age = "315360000";
        public static string RootPath = "";
        public static string document_charset = "utf-8";               // 字符集
        public static string SessonName = "__guid_session";
        public static int session_timer = 60;
        public static bool Session_open = true;
        public static string AppExe = "";
        public static string AppName = "";
        public static string WebRoot = "WebRoot";
        public static string Error404 = "";
        public static string Error500 = "";
        public static bool JsonToLower = false;
        public static bool open_debug = true;
        public static CrossOrgin Cross_Origin;
    }
}
